package ntd.util.modular.process.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import ntd.util.config.common.enums.EnumStatus;
import ntd.util.config.common.entity.BaseEntityMybatis;
import ntd.util.config.common.enums.process.EnumProcessType;
import ntd.util.util.metadata.NtdField;



@EqualsAndHashCode(callSuper = true)
@TableName("process_template")
@Data
@Schema(description = "统一消息中心 - 消息实体")
public class ProcessTemplate extends BaseEntityMybatis<ProcessTemplate> {

    @Schema(description = "所属机构", title = "所属机构")
    @NtdField(type = 6, oneModular = "common", twoModular = "mechanism")
    private String mechanismId;
    @Schema(description = "流程名称", title = "流程名称")
    private String name;
    @Schema(description = "配置内容", title = "配置内容")
    private String processConfig;
    @Schema(description = "流程类型", title = "流程类型")
    private EnumProcessType enumProcessType;
    @Schema(description = "流程状态", title = "流程状态")
    private EnumStatus state = EnumStatus.ENABLE;
    @Schema(description = "备注", title = "备注")
    private String remark;
}
